<?php
/* 
 * All public functions (helpers with no specific class) will be nested here
 *
 */
defined('SECUR_CHECK') or die("Security error");

/*
 * Converts a PHP dateformat into a jquery datepicker one
 *
 * @return datepicker date format
 */
function dateformat_php_to_datepicker($php_format)
{
    $search     = array('m', 'd', 'Y');
    $replace    = array('mm', 'dd', 'yy');

    $datepicker_format = str_replace($search, $replace, $php_format);

    return $datepicker_format;
}

?>
